import java.sql.*;
import java.util.*;
class Jdbcdemo11 {

	public static void main(String[] args) throws Exception
	{
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");
		Scanner scan = new Scanner(System.in);
		System.out.println("input empno");
		int eno = scan.nextInt();
		Statement st = cn.createStatement();
		String cmd = "delete from employee where eno="+eno;
		int count = st.executeUpdate(cmd);
		System.out.println(count);
		st.close();
		cn.close();
		st = null;
		cn = null;
		// TODO Auto-generated method stub

	}

}
